﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

///==============================
//作者：李彰楠
//日期：2020/7/5
//
//名称：FrameTools
//
//描述：存储各个模块的ID
//
///==============================
namespace gameFramework_v1dot0_lzn
{
    public enum ManagerID
    {
        MainManager = 0,

        UIManager = FrameTools.MsgSpawn,//3000;例：(int)(3003/MsgSpawn(3000)) == 1 

        AudioManager = FrameTools.MsgSpawn * 2,//6000

        NPCManager = FrameTools.MsgSpawn * 3,

        CharactorManager = FrameTools.MsgSpawn * 4,

        TerrianManager = FrameTools.MsgSpawn * 5,

        //AB包
        AssetManager = FrameTools.MsgSpawn * 6,

        NetManager = FrameTools.MsgSpawn * 7,

        InventoryManager = FrameTools.MsgSpawn * 8
    }

    public class FrameTools 
    {

        //每个manager可以管理3000条消息//const表示常量
        public const int MsgSpawn = 3000;

    }

    public enum MainEvent
    {
        MainManager = ManagerID.MainManager,
        StartState2MainState,
        MainState2PlayState,
        MainState2EditorState,
        PlayState2MainState,
        EditorState2MainState,
        EditorState2PTLGameState,
        MainState2StartState,
        MaxValue,
    }
    public enum InventoryManagerEvent
    {
        LoadUIRes = ManagerID.InventoryManager,
        MaxValue,
    }

    public enum CharactorManagerEvent
    {
        player = ManagerID.CharactorManager,
        ReadPlayerInfoFromHardDisc,
        MaxValue
    }


}

